package com.ttbj.truck.dao;

import com.ttbj.product.bean.dto.TruckDto;
import com.ttbj.truck.bean.po.Truck;
import com.ttbj.truck.bean.po.TruckExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TruckMapper {
    int countByExample(TruckExample example);

    int deleteByExample(TruckExample example);

    int deleteByPrimaryKey(Long truckId);

    int insert(Truck record);

    Long insertSelective(Truck record);

    List<Truck> selectByExample(TruckExample example);

    Truck selectByPrimaryKey(Long truckId);

    int updateByExampleSelective(@Param("record") Truck record, @Param("example") TruckExample example);

    int updateByExample(@Param("record") Truck record, @Param("example") TruckExample example);

    int updateByPrimaryKeySelective(Truck record);

    int updateByPrimaryKey(Truck record);

	List<TruckDto> likeTruck(@Param("carNum") String carNum); //模糊查询车牌号

	TruckDto queryDto(TruckDto truckDto); //动态查询车辆信息
}